-
-
Notifications
You must be signed in to change notification settings - Fork 18k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replaced !r with repr() #30020
Replaced !r with repr() #30020
Conversation
Thanks for the PR. Looks good and I think CI failures are unrelated / have been fixed on master since this was created. To be sure, can you locally on your git fetch upstream
git merge upstream/master
git push origin fstring-sorting I think should get CI green for this. Flag me down at PyData if you have any questions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kvn219 lgtm pending green ci
pandas/core/sorting.py
Outdated
@@ -264,7 +264,7 @@ def nargsort(items, kind="quicksort", ascending: bool = True, na_position="last" | |||
elif na_position == "first": | |||
indexer = np.concatenate([nan_idx, indexer]) | |||
else: | |||
raise ValueError("invalid na_position: {!r}".format(na_position)) | |||
raise ValueError(f"invalid na_position: {repr(na_position)}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can remove the repr on both of these as its unecessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback @jreback, I just pushed with repr()
removed.
Looks like a merge conflict @kvn219 can you fix that up and re-push? |
|
Hey @WillAyd, I'm not sure what to do. I'll go to HackLA next week and ask for help. |
Thanks @kvn219 |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
Issue: #29886
@WillAyd